import request from '@/util/request.js'

// 登录验证请求
export const checkLogin = (username, password, imageCode, imageCodeKey) => {
  return request.post('/login/checkLogin', {
    username: username,
    password: password,
    imageCode: imageCode,
    imageCodeKey: imageCodeKey
  })
}

// 获取图片验证码
export const getImageCode = () => {
  return request.get('/login/getImageCode')
}